import React from 'react';
import { Table } from 'antd';

const Commontable = ({ columns, dataSource, rowKey, className = '', pagination = {}, onHeaderRow }) => {
  const tableProps = {
    columns,
    dataSource,
    rowKey,
    className: `common-table ${className}`,
    pagination,
    onHeaderRow,
  };
  return <Table {...tableProps} />;
};

export default Commontable;
